#!/usr/bin/env python3
# encoding: utf-8

"""
@version: 1.0
@author: 周永波
@file: doc.py
@time: 2020/8/20 15:47
"""
from flasgger import Swagger
from flask import Flask

swagger:Swagger = None



class DocSwagger:


    def __init__(self, app: Flask) -> None:
        # app.config.from_object(config)
        # swagger_config = Swagger.DEFAULT_CONFIG
        # swagger_config['title'] = config.SWAGGER_TITLE  # 配置大标题
        # swagger_config['description'] = config.SWAGGER_DESC  # 配置公共描述内容
        # swagger_config['host'] = config.SWAGGER_HOST  # 请求域名
        global swagger
        swagger = Swagger(app)
        pass